.class public Lcom/xingbook/park/ui/l;
.super Landroid/widget/RelativeLayout;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private a:Lcom/xingbook/park/ui/n;

.field private b:Landroid/widget/ImageView;

.field private c:Landroid/widget/TextView;

.field private d:Landroid/widget/TextView;

.field private e:Landroid/widget/LinearLayout;

.field private f:Landroid/widget/ImageView;

.field private g:I


# direct methods
.method public constructor <init>(Landroid/app/Activity;FLcom/xingbook/park/ui/n;ZZZ)V
    .locals 6

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v0

    invoke-direct {p0, v0}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    invoke-virtual {p1}, Landroid/app/Activity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    const/high16 v0, 0x42dc

    mul-float/2addr v0, p2

    float-to-int v0, v0

    iput v0, p0, Lcom/xingbook/park/ui/l;->g:I

    iput-object p3, p0, Lcom/xingbook/park/ui/l;->a:Lcom/xingbook/park/ui/n;

    const v0, -0xe74b13

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/l;->setBackgroundColor(I)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x1

    const/high16 v3, 0x42dc

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xa

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/l;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Landroid/widget/LinearLayout;

    invoke-direct {v0, v1}, Landroid/widget/LinearLayout;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v0, p0}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    const/16 v2, 0x11

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setGravity(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->setOrientation(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    const/high16 v2, 0x42e8

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/4 v3, 0x0

    const/high16 v4, 0x42ea

    mul-float/2addr v4, p2

    float-to-int v4, v4

    const/4 v5, 0x0

    invoke-virtual {v0, v2, v3, v4, v5}, Landroid/widget/LinearLayout;->setPadding(IIII)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x2

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xd

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    invoke-virtual {v2, v0}, Landroid/widget/LinearLayout;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/l;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/TextView;

    invoke-direct {v0, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    const/4 v2, -0x1

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    invoke-virtual {v0}, Landroid/widget/TextView;->setSingleLine()V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    sget-object v2, Landroid/text/TextUtils$TruncateAt;->END:Landroid/text/TextUtils$TruncateAt;

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setEllipsize(Landroid/text/TextUtils$TruncateAt;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    const/4 v2, 0x0

    const/high16 v3, 0x4234

    mul-float/2addr v3, p2

    invoke-virtual {v0, v2, v3}, Landroid/widget/TextView;->setTextSize(IF)V

    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x2

    const/4 v3, -0x2

    invoke-direct {v0, v2, v3}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->e:Landroid/widget/LinearLayout;

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    invoke-virtual {v0, v2}, Landroid/widget/LinearLayout;->addView(Landroid/view/View;)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    const v2, 0x7f0a0021

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setId(I)V

    const/high16 v0, 0x420c

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x41f8

    mul-float/2addr v2, p2

    float-to-int v2, v2

    iget-object v3, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    invoke-virtual {v3, v0, v2, v0, v2}, Landroid/widget/ImageView;->setPadding(IIII)V

    new-instance v2, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v3, 0x42ea

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x42dc

    mul-float/2addr v4, p2

    float-to-int v4, v4

    invoke-direct {v2, v3, v4}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v3, 0xb

    invoke-virtual {v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    const v4, 0x7f0202aa

    invoke-virtual {v3, v4}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v3, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    invoke-virtual {v3, v2}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    invoke-virtual {v2, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-nez p5, :cond_0

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    const/16 v3, 0x8

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_0
    iget-object v2, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    invoke-virtual {p0, v2}, Lcom/xingbook/park/ui/l;->addView(Landroid/view/View;)V

    new-instance v2, Landroid/widget/TextView;

    invoke-direct {v2, v1}, Landroid/widget/TextView;-><init>(Landroid/content/Context;)V

    iput-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    invoke-virtual {v2, p0}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const v3, 0x7f0a0022

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setId(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/16 v3, 0x11

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setGravity(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/4 v3, 0x0

    const/high16 v4, 0x41f0

    mul-float/2addr v4, p2

    invoke-virtual {v2, v3, v4}, Landroid/widget/TextView;->setTextSize(IF)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Landroid/widget/TextView;->setTextColor(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/4 v3, 0x0

    const/4 v4, 0x0

    invoke-virtual {v2, v0, v3, v0, v4}, Landroid/widget/TextView;->setPadding(IIII)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/4 v2, -0x2

    const/high16 v3, 0x42dc

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0xb

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    invoke-virtual {v2, v0}, Landroid/widget/TextView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/l;->addView(Landroid/view/View;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/TextView;->setVisibility(I)V

    new-instance v0, Landroid/widget/ImageView;

    invoke-direct {v0, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    const v2, 0x7f0a0020

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setId(I)V

    const/high16 v0, 0x4228

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x4200

    mul-float/2addr v2, p2

    float-to-int v2, v2

    iget-object v3, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    invoke-virtual {v3, v0, v2, v0, v2}, Landroid/widget/ImageView;->setPadding(IIII)V

    new-instance v0, Landroid/widget/RelativeLayout$LayoutParams;

    const/high16 v2, 0x42e8

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x42dc

    mul-float/2addr v3, p2

    float-to-int v3, v3

    invoke-direct {v0, v2, v3}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v2, 0x9

    invoke-virtual {v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    iget-object v2, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    invoke-virtual {v2, v0}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    const v2, 0x7f0202a7

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    invoke-virtual {v0, p0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    if-eqz p4, :cond_4

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    const/4 v2, 0x0

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    :goto_0
    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    invoke-virtual {p0, v0}, Lcom/xingbook/park/ui/l;->addView(Landroid/view/View;)V

    invoke-static {}, Lcom/xingbook/park/c/a;->a()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->b:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    :cond_1
    invoke-static {}, Lcom/xingbook/park/c/a;->a()Z

    move-result v0

    if-eqz v0, :cond_3

    if-eqz p6, :cond_3

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    invoke-static {}, Lcom/xingbook/c/n;->l()Lcom/xingbook/c/j;

    move-result-object v2

    const/4 v0, 0x0

    if-eqz v2, :cond_2

    invoke-virtual {v2}, Lcom/xingbook/c/j;->m()Lcom/xingbook/c/r;

    move-result-object v0

    invoke-virtual {v0}, Lcom/xingbook/c/r;->e()J

    move-result-wide v2

    const-wide/32 v4, 0x133789d

    cmp-long v0, v2, v4

    if-lez v0, :cond_5

    const/4 v0, 0x1

    :cond_2
    :goto_1
    if-eqz v0, :cond_3

    const/high16 v0, 0x42ea

    mul-float/2addr v0, p2

    float-to-int v0, v0

    const/high16 v2, 0x42dc

    mul-float/2addr v2, p2

    float-to-int v2, v2

    const/high16 v3, 0x41e0

    mul-float/2addr v3, p2

    float-to-int v3, v3

    const/high16 v4, 0x41c8

    mul-float/2addr v4, p2

    float-to-int v4, v4

    new-instance v5, Landroid/widget/ImageView;

    invoke-direct {v5, v1}, Landroid/widget/ImageView;-><init>(Landroid/content/Context;)V

    sget-object v1, Landroid/widget/ImageView$ScaleType;->FIT_XY:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    invoke-virtual {v5, v3, v4, v3, v4}, Landroid/widget/ImageView;->setPadding(IIII)V

    const v1, 0x7f0202a9

    invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    new-instance v1, Landroid/widget/RelativeLayout$LayoutParams;

    invoke-direct {v1, v0, v2}, Landroid/widget/RelativeLayout$LayoutParams;-><init>(II)V

    const/16 v0, 0xb

    invoke-virtual {v1, v0}, Landroid/widget/RelativeLayout$LayoutParams;->addRule(I)V

    invoke-virtual {v5, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    new-instance v0, Lcom/xingbook/park/ui/m;

    invoke-direct {v0, p0, p1}, Lcom/xingbook/park/ui/m;-><init>(Lcom/xingbook/park/ui/l;Landroid/app/Activity;)V

    invoke-virtual {v5, v0}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    invoke-virtual {p0, v5}, Lcom/xingbook/park/ui/l;->addView(Landroid/view/View;)V

    :cond_3
    return-void

    :cond_4
    iget-object v0, p0, Lcom/xingbook/park/ui/l;->f:Landroid/widget/ImageView;

    const/16 v2, 0x8

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setVisibility(I)V

    goto :goto_0

    :cond_5
    const/4 v0, 0x0

    goto :goto_1
.end method

.method public static a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/n;Z)Lcom/xingbook/park/ui/l;
    .locals 7

    new-instance v0, Lcom/xingbook/park/ui/l;

    const/4 v5, 0x1

    const/4 v6, 0x0

    move-object v1, p0

    move v2, p2

    move-object v3, p3

    move v4, p4

    invoke-direct/range {v0 .. v6}, Lcom/xingbook/park/ui/l;-><init>(Landroid/app/Activity;FLcom/xingbook/park/ui/n;ZZZ)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0
.end method

.method public static a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/n;ZI)Lcom/xingbook/park/ui/l;
    .locals 7

    const/4 v5, 0x1

    new-instance v0, Lcom/xingbook/park/ui/l;

    if-ne p5, v5, :cond_0

    move v6, v5

    :goto_0
    move-object v1, p0

    move v2, p2

    move-object v3, p3

    move v4, p4

    invoke-direct/range {v0 .. v6}, Lcom/xingbook/park/ui/l;-><init>(Landroid/app/Activity;FLcom/xingbook/park/ui/n;ZZZ)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0

    :cond_0
    const/4 v6, 0x0

    goto :goto_0
.end method

.method public static a(Landroid/app/Activity;Landroid/widget/RelativeLayout;FLcom/xingbook/park/ui/n;ZZ)Lcom/xingbook/park/ui/l;
    .locals 7

    new-instance v0, Lcom/xingbook/park/ui/l;

    const/4 v6, 0x0

    move-object v1, p0

    move v2, p2

    move-object v3, p3

    move v4, p4

    move v5, p5

    invoke-direct/range {v0 .. v6}, Lcom/xingbook/park/ui/l;-><init>(Landroid/app/Activity;FLcom/xingbook/park/ui/n;ZZZ)V

    invoke-virtual {p1, v0}, Landroid/widget/RelativeLayout;->addView(Landroid/view/View;)V

    return-object v0
.end method


# virtual methods
.method public a(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    if-eqz p2, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    invoke-virtual {v0, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    :cond_0
    return-void
.end method

.method public getRealHeight()I
    .locals 1

    iget v0, p0, Lcom/xingbook/park/ui/l;->g:I

    return v0
.end method

.method public onClick(Landroid/view/View;)V
    .locals 2

    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0021

    if-ne v0, v1, :cond_1

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->a:Lcom/xingbook/park/ui/n;

    invoke-interface {v0}, Lcom/xingbook/park/ui/n;->a()V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0020

    if-ne v0, v1, :cond_2

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->a:Lcom/xingbook/park/ui/n;

    invoke-interface {v0}, Lcom/xingbook/park/ui/n;->c()V

    goto :goto_0

    :cond_2
    invoke-virtual {p1}, Landroid/view/View;->getId()I

    move-result v0

    const v1, 0x7f0a0022

    if-ne v0, v1, :cond_0

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->a:Lcom/xingbook/park/ui/n;

    invoke-interface {v0}, Lcom/xingbook/park/ui/n;->b()V

    goto :goto_0
.end method

.method public setTitle(Ljava/lang/String;)V
    .locals 2

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->c:Landroid/widget/TextView;

    invoke-virtual {v0, p1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    iget-object v0, p0, Lcom/xingbook/park/ui/l;->d:Landroid/widget/TextView;

    const/16 v1, 0x8

    invoke-virtual {v0, v1}, Landroid/widget/TextView;->setVisibility(I)V

    return-void
.end method
